package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.LdcodeDao;
import io.renren.modules.generator.entity.LdcodeEntity;
import io.renren.modules.generator.service.LdcodeService;



@Service("ldcodeService")
public class LdcodeServiceImpl implements LdcodeService {
	@Autowired
	private LdcodeDao ldcodeDao;
	
	@Override
	public LdcodeEntity queryObject(String code){
		return ldcodeDao.queryObject(code);
	}
	
	@Override
	public List<LdcodeEntity> queryList(Map<String, Object> map){
		return ldcodeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return ldcodeDao.queryTotal(map);
	}
	
	@Override
	public void save(LdcodeEntity ldcode){
		ldcodeDao.save(ldcode);
	}
	
	@Override
	public void update(LdcodeEntity ldcode){
		ldcodeDao.update(ldcode);
	}
	
	@Override
	public void delete(String code){
		ldcodeDao.delete(code);
	}
	
	@Override
	public void deleteBatch(String[] codes){
		ldcodeDao.deleteBatch(codes);
	}
	
}
